package com.mars.ticket.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.ticket.response.base.BasePageRequest;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wq
 * @version 1.0
 * @date 2021/03/15 14:31
 */

public class SysTicketRequest extends BasePageRequest implements Serializable {

    private Integer id;

    /**
     * 车次
     */
    private Integer trainNumber;

    /**
     * 车票数量
     */
    private Integer ticketNumber;

    private Integer price;

    /**
     * 车次类型 1 高铁 2 动车  3直达  4特快 5快速 6其他
     */
    @TableField("train_number_type")
    private Integer trainNumberType;

    /**
     * 座位类型  1 软座 2 硬座 3 卧铺
     */
    private Integer seatType;

    private String passStation;
    /**
     * 出发地
     */
    private String startingPoint;

    /**
     * 目的地
     */
    private String endingPoint;

    /**
     * 开始时间
     */
    private Date startingTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(Integer trainNumber) {
        this.trainNumber = trainNumber;
    }

    public Integer getTicketNumber() {
        return ticketNumber;
    }

    public void setTicketNumber(Integer ticketNumber) {
        this.ticketNumber = ticketNumber;
    }

    public Integer getTrainNumberType() {
        return trainNumberType;
    }

    public void setTrainNumberType(Integer trainNumberType) {
        this.trainNumberType = trainNumberType;
    }

    public Integer getSeatType() {
        return seatType;
    }

    public void setSeatType(Integer seatType) {
        this.seatType = seatType;
    }

    public String getPassStation() {
        return passStation;
    }

    public void setPassStation(String passStation) {
        this.passStation = passStation;
    }

    public String getStartingPoint() {
        return startingPoint;
    }

    public void setStartingPoint(String startingPoint) {
        this.startingPoint = startingPoint;
    }

    public String getEndingPoint() {
        return endingPoint;
    }

    public void setEndingPoint(String endingPoint) {
        this.endingPoint = endingPoint;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getStartingTime() {
        return startingTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public void setStartingTime(Date startingTime) {
        this.startingTime = startingTime;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }
}
